$(document).ready(function(){
    $('.delete_newsletter').click(function(){
        var newsletter_id = $(this).attr('newsletter_id');
        var array_attr = {confirm_delete_newsletter:"confirm_delete_newsletter", newsletter_id:newsletter_id}; 
        open_modal_confirm('Xác nhận', 'Bạn có chắc chắn muốn xóa...', array_attr);
    });

    $('button[confirm_delete_newsletter=confirm_delete_newsletter]').live('click',function(){
        var newsletter_id = $(this).attr('newsletter_id');
        $.ajax({
                url:admin_url + 'ajax/delete_newsletter',
                type:'post',
                data:{newsletter_id:newsletter_id},
                success:function(data){
                    location.reload(); 
                }
            });
    });
});